{% extends "../../views/master.html" %}

{% block content %}
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
var frame;
function open_popup(url) {
	  frame = window.open(url, "popup", "width=300,height=400,left=100,top=200");
	  frame.focus();
	}
	
var init = function() {

	$("#link").click(function() {
		open_popup("/sites/frame");
	});

	$("#close").click(function() {
		frame.close();
	});
}

var say = function() {
	alert("Buuu!");
}

$(document).ready(init);


</script>

<a href="#" id="link">open</a>
<a href="#" id="close">close</a>

{% endblock %}